from os import system

def setEth0(ipAddress):
    if ipAddress != "":
        system('sudo ifconfig eth0 down')
        system(f'sudo ifconfig eth0 {ipAddress}')
        system('sudo ifconfig eth0 up')

def set_new_ip(ip_address):
    if ip_address != "":
        system('sudo ifconfig wlan0 down')
        system(f'sudo ifconfig wlan0 {ip_address}')
        system('sudo ifconfig wlan0 up')

